package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 预警模式表
 * </p>
 * @author pan
 * @since 2020-06-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CrmEarlyWarningModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id", required = false)
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty("黑白名单分类名称")
    @TableField("crm_blacklist_type_name")
    private String blacklistTypeName;

    @ApiModelProperty("黑白名单分类ID")
    @TableField("crm_blacklist_type_id")
    private String blacklistTypeId;

    @ApiModelProperty("描述备注")
    @TableField("early_warning_description")
    private String earlyWarningDescription;

    @ApiModelProperty("创建者ID")
    @TableField("create_user_id")
    private String createUserId;

    @ApiModelProperty(value = "创建时间", required = false)
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间", required = false)
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no", required = false)
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "预警类型实体集合")
    @TableField(exist = false)
    private List<CrmEarlyWarningType> earlyWarningTypes;

    @ApiModelProperty(value = "预警类型实体集合")
    @TableField(exist = false)
    private List<Long> earlyWarningTypeIds;
}
